<?php

namespace common\models\ofc;

use Yii;

/**
 * This is the model class for table "{{%ofc_season_board}}".
 *
 * @property int $id
 * @property int $season_id 赛季ID
 * @property int $team_id 球队ID
 * @property string|null $team_name 球队名称
 * @property int $won 胜
 * @property int $draw 平
 * @property int $lost 负
 * @property int $credit 积分
 * @property int $rank 排名
 * @property int $status 状态
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class OfcSeasonBoard extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%ofc_season_board}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['season_id', 'team_id', 'won', 'draw', 'lost', 'credit', 'rank', 'status', 'created_at', 'updated_at'], 'integer'],
            [['team_name'], 'string', 'max' => 100],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'season_id' => '赛季ID',
            'team_id' => '球队ID',
            'team_name' => '球队名称',
            'won' => '胜',
            'draw' => '平',
            'lost' => '负',
            'credit' => '积分',
            'rank' => '排名',
            'status' => '状态',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }

}
